<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/BIMCore/SZEWTerrain/TerrainInterface.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_e3325e696d21a08deba78a65bfafb4c2.html">BIMCore</a></li><li class="navelem"><a class="el" href="../../dir_739637f9a01394961e3ae1c5c85253ea.html">SZEWTerrain</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">TerrainInterface.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span>SZEWBOREHOLEGEOLOGY_TYPEDEFS(<a class="code hl_struct" href="../../df/d24/struct_terrain_info.html">TerrainInfo</a>);</div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span>SZEWBOREHOLEGEOLOGY_TYPEDEFS(<a class="code hl_struct" href="../../da/d26/struct_terrain_inter_face.html">TerrainInterFace</a>);</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span>BEGIN_SZEW_BOREHOLEGEOLOGY_NAMESPACE</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="keyword">typedef</span> RefCountedPtr&lt;TerrainInfo&gt; TerrainInfoPtr;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="keyword">typedef</span> RefCountedPtr&lt;TerrainInterFace&gt; TerrainInterFacePtr;</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="../../df/d24/struct_terrain_info.html">   16</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../df/d24/struct_terrain_info.html">TerrainInfo</a> :<span class="keyword">public</span> RefCountedBase</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    ObjectId m_sBoundaryId;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>    WString m_sProject;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    <a class="code hl_struct" href="../../d7/d7f/struct_x_range3d.html">XRange3d</a> m_stRange;    </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    ATProjectP atProj = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../df/d24/struct_terrain_info.html#a317022470824fe6b7b1a8593d4bd9b65">   37</a></span>    SZEWTERRAIN_EXPORT <a class="code hl_function" href="../../df/d24/struct_terrain_info.html#a317022470824fe6b7b1a8593d4bd9b65">TerrainInfo</a>(ObjectId <span class="keywordtype">id</span>, ATProjectP proj, <a class="code hl_struct" href="../../d7/d7f/struct_x_range3d.html">XRange3d</a> range);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="../../df/d24/struct_terrain_info.html#a75ed2e9a563192653310856390cbaf4e">   48</a></span>    SZEWTERRAIN_EXPORT <a class="code hl_function" href="../../df/d24/struct_terrain_info.html#a75ed2e9a563192653310856390cbaf4e">TerrainInfo</a>(HEATObjectCR obj);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="../../df/d24/struct_terrain_info.html#a18d22dc3a7d18d89280f6c1f8c3c9c36">   59</a></span>    SZEWTERRAIN_EXPORT <a class="code hl_function" href="../../df/d24/struct_terrain_info.html#a18d22dc3a7d18d89280f6c1f8c3c9c36">TerrainInfo</a>(HATObjectCR obj);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    SZEWTERRAIN_EXPORT ObjectId GetID() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    SZEWTERRAIN_EXPORT ATProjectP GetBelongingATProject();</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    SZEWTERRAIN_EXPORT <span class="keywordtype">bool</span> IsValidated();</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>};</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html">   71</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../da/d26/struct_terrain_inter_face.html">TerrainInterFace</a> :<span class="keyword">public</span> RefCountedBase</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>{</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a6533a24a98a782b4330bd98cfa18d7ba">   85</a></span>    SZEWTERRAIN_EXPORT <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a6533a24a98a782b4330bd98cfa18d7ba">GetAllTerrainInfo</a>(xvector&lt;TerrainInfoPtr&gt;&amp; allInfo);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a69604b2eed765ace566b5f599111f665">   96</a></span>    SZEWTERRAIN_EXPORT <span class="keyword">static</span> ATScenePtr <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a69604b2eed765ace566b5f599111f665">GetTerrainScene</a>(ATProjectR proj);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a9f70aa2150e5aa2c4c4663b5ee53e1f7">  107</a></span>    SZEWTERRAIN_EXPORT <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a9f70aa2150e5aa2c4c4663b5ee53e1f7">InitFromTerrainObject</a>(HATObjectCR obj);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a14fe48575291971a1fd0cd6ed4e77d70">  117</a></span>    SZEWTERRAIN_EXPORT <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a14fe48575291971a1fd0cd6ed4e77d70">InitFromTerrainObject</a>(HEATObjectCR obj);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a18a3c3c3b449661c86bbe0f7ce8c5541">  127</a></span>    SZEWTERRAIN_EXPORT <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a18a3c3c3b449661c86bbe0f7ce8c5541">InitFromTerrainInfo</a>(TerrainInfoPtr info);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#af59555257357fea1f34c236d23afb65b">  138</a></span>    SZEWTERRAIN_EXPORT  CurveSetPtr <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#af59555257357fea1f34c236d23afb65b">GetBoundary</a>();</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#aa59430b8fdb63d79bac2bc19bf21051d">  148</a></span>    SZEWTERRAIN_EXPORT  PolyfaceMeshObjectPtr <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#aa59430b8fdb63d79bac2bc19bf21051d">GetMesh</a>();</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#aacc0a705dc9a3d763d69a562712503b6">  159</a></span>    SZEWTERRAIN_EXPORT  PolyfaceMeshObjectPtr <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#aacc0a705dc9a3d763d69a562712503b6">ExcavationByRegion</a>(xvector&lt;CurveSetPtr&gt; excavationRegion) ;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#a631bf36487e1b20cfc9a7e48f84e1d54">  170</a></span>    SZEWTERRAIN_EXPORT  PolyfaceMeshObjectPtr <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#a631bf36487e1b20cfc9a7e48f84e1d54">ExtractByRegion</a>(CurveSetPtr extractRegion) ;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="../../da/d26/struct_terrain_inter_face.html#af5257e18d4e44ba4d8f9f439fcbae9f9">  184</a></span>    SZEWTERRAIN_EXPORT  <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d26/struct_terrain_inter_face.html#af5257e18d4e44ba4d8f9f439fcbae9f9">DrapedPoint</a>(XPoint3dR result, XPoint3dCP spacePt, XPoint3dCP  drapeVec, <span class="keywordtype">bool</span> IsFixDirect = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span> </div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>};</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>END_SZEW_BOREHOLEGEOLOGY_NAMESPACE</div>
<div class="ttc" id="astruct_terrain_info_html"><div class="ttname"><a href="../../df/d24/struct_terrain_info.html">TerrainInfo</a></div><div class="ttdoc">地形信息</div><div class="ttdef"><b>Definition:</b> TerrainInterface.h:17</div></div>
<div class="ttc" id="astruct_terrain_info_html_a18d22dc3a7d18d89280f6c1f8c3c9c36"><div class="ttname"><a href="../../df/d24/struct_terrain_info.html#a18d22dc3a7d18d89280f6c1f8c3c9c36">TerrainInfo::TerrainInfo</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT TerrainInfo(HATObjectCR obj)</div><div class="ttdoc">构造函数</div></div>
<div class="ttc" id="astruct_terrain_info_html_a317022470824fe6b7b1a8593d4bd9b65"><div class="ttname"><a href="../../df/d24/struct_terrain_info.html#a317022470824fe6b7b1a8593d4bd9b65">TerrainInfo::TerrainInfo</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT TerrainInfo(ObjectId id, ATProjectP proj, XRange3d range)</div><div class="ttdoc">构造函数</div></div>
<div class="ttc" id="astruct_terrain_info_html_a75ed2e9a563192653310856390cbaf4e"><div class="ttname"><a href="../../df/d24/struct_terrain_info.html#a75ed2e9a563192653310856390cbaf4e">TerrainInfo::TerrainInfo</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT TerrainInfo(HEATObjectCR obj)</div><div class="ttdoc">构造函数</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html">TerrainInterFace</a></div><div class="ttdoc">地形对外接口</div><div class="ttdef"><b>Definition:</b> TerrainInterface.h:72</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a14fe48575291971a1fd0cd6ed4e77d70"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a14fe48575291971a1fd0cd6ed4e77d70">TerrainInterFace::InitFromTerrainObject</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT bool InitFromTerrainObject(HEATObjectCR obj)</div><div class="ttdoc">初始化–从地形元素中</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a18a3c3c3b449661c86bbe0f7ce8c5541"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a18a3c3c3b449661c86bbe0f7ce8c5541">TerrainInterFace::InitFromTerrainInfo</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT bool InitFromTerrainInfo(TerrainInfoPtr info)</div><div class="ttdoc">初始化–从地形信息中</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a631bf36487e1b20cfc9a7e48f84e1d54"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a631bf36487e1b20cfc9a7e48f84e1d54">TerrainInterFace::ExtractByRegion</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT PolyfaceMeshObjectPtr ExtractByRegion(CurveSetPtr extractRegion)</div><div class="ttdoc">地形面取区域内的mesh</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a6533a24a98a782b4330bd98cfa18d7ba"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a6533a24a98a782b4330bd98cfa18d7ba">TerrainInterFace::GetAllTerrainInfo</a></div><div class="ttdeci">static SZEWTERRAIN_EXPORT bool GetAllTerrainInfo(xvector&lt; TerrainInfoPtr &gt; &amp;allInfo)</div><div class="ttdoc">获取所有地形信息</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a69604b2eed765ace566b5f599111f665"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a69604b2eed765ace566b5f599111f665">TerrainInterFace::GetTerrainScene</a></div><div class="ttdeci">static SZEWTERRAIN_EXPORT ATScenePtr GetTerrainScene(ATProjectR proj)</div><div class="ttdoc">获取地形所在的场景</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_a9f70aa2150e5aa2c4c4663b5ee53e1f7"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#a9f70aa2150e5aa2c4c4663b5ee53e1f7">TerrainInterFace::InitFromTerrainObject</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT bool InitFromTerrainObject(HATObjectCR obj)</div><div class="ttdoc">初始化–从地形元素中</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_aa59430b8fdb63d79bac2bc19bf21051d"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#aa59430b8fdb63d79bac2bc19bf21051d">TerrainInterFace::GetMesh</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT PolyfaceMeshObjectPtr GetMesh()</div><div class="ttdoc">获取地形mesh</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_aacc0a705dc9a3d763d69a562712503b6"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#aacc0a705dc9a3d763d69a562712503b6">TerrainInterFace::ExcavationByRegion</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT PolyfaceMeshObjectPtr ExcavationByRegion(xvector&lt; CurveSetPtr &gt; excavationRegion)</div><div class="ttdoc">开挖地形mesh</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_af5257e18d4e44ba4d8f9f439fcbae9f9"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#af5257e18d4e44ba4d8f9f439fcbae9f9">TerrainInterFace::DrapedPoint</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT bool DrapedPoint(XPoint3dR result, XPoint3dCP spacePt, XPoint3dCP drapeVec, bool IsFixDirect=false)</div><div class="ttdoc">点投影</div></div>
<div class="ttc" id="astruct_terrain_inter_face_html_af59555257357fea1f34c236d23afb65b"><div class="ttname"><a href="../../da/d26/struct_terrain_inter_face.html#af59555257357fea1f34c236d23afb65b">TerrainInterFace::GetBoundary</a></div><div class="ttdeci">SZEWTERRAIN_EXPORT CurveSetPtr GetBoundary()</div><div class="ttdoc">获取边界</div></div>
<div class="ttc" id="astruct_x_range3d_html"><div class="ttname"><a href="../../d7/d7f/struct_x_range3d.html">XRange3d</a></div><div class="ttdoc">三维范围盒</div><div class="ttdef"><b>Definition:</b> XRange3d.h:12</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
